package com.wjy.blog.dao;

import com.wjy.blog.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao {

    int insertUser(User user);

    int deleteUser(@Param("id") Integer id);

    User findUserById(@Param("id") Integer id);

    User findUserByName(@Param("name") String name);

    User updateUser(User user);
}
